package 多维数组;
/* //**举例1：**数组统计：求总和、均值*/
public class Demo4 {
    public static void main(String[] args) {
        int[] arr = {4, 5, 6, 1, 9};
        int sum = 0;
        for (int i = 0; i < arr.length; i++){
            sum+=arr[i];
        }
        System.out.println(sum);
        System.out.println(sum/arr.length);
    }
}
